// import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
// import Parent from '@/components/parent'
// Vue.use(Router)
// export default new Router({
//     routes: [
//         {
//             path: '/',
//             name: 'HelloWorld',
//             component: HelloWorld
//         },{
//             path: '/parent',
//             name: 'Parent',
//             component: Parent
//         }
//     ]
// })
import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Home from '@/page/Home.vue'
Vue.use(Router)
export default new Router({
    routes: [
        {
            path: '/',
            name: 'Home',
            component: Home
        },{
            path: "/details/:goodId",
            name: "Detail",
            component: Detail
        }
    ]
})